from rest_framework.serializers import ModelSerializer

from education.models import User


class UserSimpleSerializer(ModelSerializer):
    class Meta:
        model = User
        fields = ('userid', 'address')


class UserDetailSerializer(ModelSerializer):
    class Meta:
        model = User
        exclude = ('userid', 'password', 'is_certificated', 'balance', 'regdate', 'point', 'is_locked', 'photo')
